Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SegmentedControl: Don't update selected state on links #1571

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Nov 2, 2022

Description

This updates the SegmentedControl component to not change selected state when clicking on an item rendered as a link. This is because the browser will take care of loading and updating, changing the selected state before it's finished loaded breaks that cognitive connection.

Integration

Does this change require any updates to code in production?

No

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@jonrohan jonrohan requested review from a team and keithamus November 2, 2022 00:03
@changeset-bot
Copy link

changeset-bot bot commented Nov 2, 2022

🦋 Changeset detected

Latest commit: 60bd895

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/view-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Nov 2, 2022
@jonrohan jonrohan merged commit bc235b3 into main Nov 3, 2022
@jonrohan jonrohan deleted the segmented_control_click_link branch November 3, 2022 14:23
@primer-css primer-css mentioned this pull request Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants